﻿var mongoose = require('mongoose');

var positionInfoSchema = new mongoose.Schema({
    position: { type: String, unique: true, allowNull: false },
    lastModifyDate: Date
});

positionInfoSchema.pre('save', function (next) {
    this.lastModifyDate = Date.now();
    next();
});

module.exports = positionInfoSchema;